<%@ page import="com.vo.Student" %>
<%@ page import="java.util.List" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
	<title>Student List</title>
</head>
<body>
<h2>Student List</h2>

<table border="1">
	<tr>
		<th>Name</th>
		<th>Age</th>
	</tr>
	<%
		List<Student> studentList = (List<Student>) session.getAttribute("students");
		for (Student student: studentList){
	%>	<tr>
			<td><%=student.getName()%></td>
			<td><%=student.getAge()%></td>
		</tr>
<%}
%>

</table>
<button onclick="location.href='/SpringMVC_01_build_Annotation_war/showJson'">showJson</button>
</body>
</html>